import requests


session = requests.session()
url = 'http://www.cninfo.com.cn/new/data/szse_stock.json'

session.headers = {
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36',

}
resp = session.get(url)

print(dict(resp.cookies))